package com.object;

/**
 * @author xiangui
 * 描述:
 * 时间: Create in 17:05 2018/7/23
 */
public class ClinitTest {

    static class Parent{
        public static int A = 1;
        static {
            A = 2;
        }
    }
    static class Sub extends Parent{
        public static int B = A;
    }

    public static void main(String[] args) {
        System.out.println(Sub.B);
    }

}
